#ifndef APPBUTTONCONTROLLER_HPP_
#define APPBUTTONCONTROLLER_HPP_

#include "System.h"

#if (LCD_GUI_TYPE == LCD_GUI_TOUCHGFX)


#include <platform/driver/button/ButtonController.hpp>

class AppButtonController : public touchgfx::ButtonController
{
    virtual void init();
    virtual bool sample(uint8_t& key);

private:
    uint8_t KeyState(void);

    uint8_t previousState;
};
#endif

#endif /* MB1642ABUTTONCONTROLLER_HPP_ */
